package com.cqeec.gams.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.cqeec.gams.entity.Role;

public interface RoleMapper {
	
	public long countAll();
	
	public long count(String name);

	public List<Role> findAll();

	public void insert(Role role);

	/**
	 * @param pageNumber
	 * @param pageSize
	 * @return
	 */
	public List<Role> selectPage(@Param("name") String name, @Param("startRowNum") int startRowNum,
			@Param("pageSize") int pageSize);

	/**
	 * @param role
	 */
	public void save(Role role);

	/**
	 * @param id
	 * @return
	 */
	public Role findById(String id);

	/**
	 * @param role
	 */
	public void update(Role role);
}
